<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>消息统计 - [[${configs.title}]]</title>
    <link rel="stylesheet" href="/statics/layui-v2.8.15/css/layui.css">
    <link rel="stylesheet" href="/statics/css/admin/common.css">
</head>
<body>
<!-- 内容主体区域 -->
<div class="main-body">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>消息统计</legend>
    </fieldset>
    <table class="layui-table">
        <thead>
        <tr>
            <th>单位</th>
            <th>公众号名称</th>
            <th>本月</th>
            <th th:each="entries,stat:${messageYearList}" th:text="${entries.year == currentYear ? '今年' : entries.year}"></th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="entries,stat:${messageCountList}">
            <td th:text="${entries['department']}"></td>
            <td th:text="${entries['mpName']}"></td>
            <td th:text="${entries['currentMonthCount']}+' 人'"></td>
            <td th:each="item:${entries.yearList}" th:text="${item['count']}+' 人'"></td>
        </tr>
        </tbody>
    </table>
</div>
<script src="/statics/layui-v2.8.15/layui.js"></script>
</body>
</html>